﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A4F RID: 2639
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LineupAvatarData : IMessage<LineupAvatarData>, IMessage, IEquatable<LineupAvatarData>, IDeepCloneable<LineupAvatarData>, IBufferMessage
	{
		// Token: 0x17002158 RID: 8536
		// (get) Token: 0x06007644 RID: 30276 RVA: 0x0013BB35 File Offset: 0x00139D35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LineupAvatarData> Parser
		{
			get
			{
				return LineupAvatarData._parser;
			}
		}

		// Token: 0x17002159 RID: 8537
		// (get) Token: 0x06007645 RID: 30277 RVA: 0x0013BB3C File Offset: 0x00139D3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LineupAvatarDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700215A RID: 8538
		// (get) Token: 0x06007646 RID: 30278 RVA: 0x0013BB4E File Offset: 0x00139D4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LineupAvatarData.Descriptor;
			}
		}

		// Token: 0x06007647 RID: 30279 RVA: 0x0013BB55 File Offset: 0x00139D55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupAvatarData()
		{
		}

		// Token: 0x06007648 RID: 30280 RVA: 0x0013BB5D File Offset: 0x00139D5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupAvatarData(LineupAvatarData other) : this()
		{
			this.hp_ = other.hp_;
			this.id_ = other.id_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007649 RID: 30281 RVA: 0x0013BB9A File Offset: 0x00139D9A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupAvatarData Clone()
		{
			return new LineupAvatarData(this);
		}

		// Token: 0x1700215B RID: 8539
		// (get) Token: 0x0600764A RID: 30282 RVA: 0x0013BBA2 File Offset: 0x00139DA2
		// (set) Token: 0x0600764B RID: 30283 RVA: 0x0013BBAA File Offset: 0x00139DAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Hp
		{
			get
			{
				return this.hp_;
			}
			set
			{
				this.hp_ = value;
			}
		}

		// Token: 0x1700215C RID: 8540
		// (get) Token: 0x0600764C RID: 30284 RVA: 0x0013BBB3 File Offset: 0x00139DB3
		// (set) Token: 0x0600764D RID: 30285 RVA: 0x0013BBBB File Offset: 0x00139DBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x1700215D RID: 8541
		// (get) Token: 0x0600764E RID: 30286 RVA: 0x0013BBC4 File Offset: 0x00139DC4
		// (set) Token: 0x0600764F RID: 30287 RVA: 0x0013BBCC File Offset: 0x00139DCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x06007650 RID: 30288 RVA: 0x0013BBD5 File Offset: 0x00139DD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LineupAvatarData);
		}

		// Token: 0x06007651 RID: 30289 RVA: 0x0013BBE4 File Offset: 0x00139DE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LineupAvatarData other)
		{
			return other != null && (other == this || (this.Hp == other.Hp && this.Id == other.Id && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007652 RID: 30290 RVA: 0x0013BC40 File Offset: 0x00139E40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Hp != 0U)
			{
				num ^= this.Hp.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007653 RID: 30291 RVA: 0x0013BCB7 File Offset: 0x00139EB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007654 RID: 30292 RVA: 0x0013BCBF File Offset: 0x00139EBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007655 RID: 30293 RVA: 0x0013BCC8 File Offset: 0x00139EC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Id);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.Hp != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Hp);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007656 RID: 30294 RVA: 0x0013BD3C File Offset: 0x00139F3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Hp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Hp);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007657 RID: 30295 RVA: 0x0013BDAC File Offset: 0x00139FAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LineupAvatarData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Hp != 0U)
			{
				this.Hp = other.Hp;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007658 RID: 30296 RVA: 0x0013BE10 File Offset: 0x0013A010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007659 RID: 30297 RVA: 0x0013BE1C File Offset: 0x0013A01C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 56U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Hp = input.ReadUInt32();
						}
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002D18 RID: 11544
		private static readonly MessageParser<LineupAvatarData> _parser = new MessageParser<LineupAvatarData>(() => new LineupAvatarData());

		// Token: 0x04002D19 RID: 11545
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002D1A RID: 11546
		public const int HpFieldNumber = 15;

		// Token: 0x04002D1B RID: 11547
		private uint hp_;

		// Token: 0x04002D1C RID: 11548
		public const int IdFieldNumber = 1;

		// Token: 0x04002D1D RID: 11549
		private uint id_;

		// Token: 0x04002D1E RID: 11550
		public const int AvatarTypeFieldNumber = 7;

		// Token: 0x04002D1F RID: 11551
		private AvatarType avatarType_;
	}
}
